package com.whu.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_supplier")
public class Supplier {

    private Long id;

    private String name;

    private String address;

    @TableField(value = "p_id")
    private Long pid;

    public Supplier(String name, String address) {
        this.name = name;
        this.address = address;
    }

    public Supplier(String name, String address, Long pid) {
        this.name = name;
        this.address = address;
        this.pid = pid;
    }
}
